<%= form_tag :controller=> 'report',:action => 'customizereport',:type=>'industry'%>
<table width="650" border="0" cellspacing="0" cellpadding="0"
	class="medgray">
	<tr>
		<td colspan="5"><%=image_tag "customizreport_2.gif",:alt=>"定制你的分析报告", :align=>"left" %></td>
	</tr>
	<tr height="30">
		<td colspan="5"></td>
	</tr>
	<tr valign="top" height="30">
		<td width="10"></td>
		<td width="190">
		<li><strong>请选择需要分析的行业：</strong></li>
		</td>
		<td colspan="2"><%= select 'industry', 'id',Industry.find(:all).map {|u| [u.cname, u.id] }%></td>
		<%= observe_field(:industry_id,:frequency => 0.5,:update => "company",
				:loading => "Element.show('industryind')",:complete => "Element.hide('industryind')",
				:url => {:controller=>"index",:action => "listcompany"}) %>
		<td><div id='industryind' style="display:none"><%=image_tag("/images/progress.gif")%></div></td>
	</tr>
	<tr height="10">
		<td colspan="5"></td>
	</tr>
	<tr valign="top" height="30">
		<td></td>
		<td>
		<li><strong>请选择需要分析的公司：</strong></li>
		</td>
		<td width="175" id="company"><%= select 'company', 'id',Company.find(:all,:conditions=>["industry_id=1"]).map {|u| [u.cname, u.id] },{},{:size =>"7",:style=>"width:175px;"}%>
		</td>
		<td valign="middle" width="50"><IMG
			onclick=addToWithSubmit(company_id,companySelected) height=17 alt=""
			src="/images/GRAY_BTN_ADD.gif" width=50><BR>
		<BR>
		<IMG onclick=moveWithSubmit(companySelected) height=17 alt=""
			src="/images/GRAY_BTN_SUBTRACT.gif" width=50></TD>
		<td align=left><SELECT size=7 name=companySelected
			style="width:175px;"></SELECT><INPUT type=hidden name=companySelected1
			id=companySelected1><INPUT type=hidden name=companySelected2
			id=companySelected2><INPUT type=hidden name=companySelected3
			id=companySelected3><INPUT type=hidden name=companySelected4
			id=companySelected4><INPUT type=hidden name=companySelected5
			id=companySelected5><INPUT type=hidden name=companySelected6
			id=companySelected6></td>
	</tr>
	<tr height="10">
		<td colspan="5"></td>
	</tr>
	</tr>
	<tr valign="middle" height="30">
		<td></td>
		<td>
		<li><strong>请选择需要分析的职能：</strong></li>
		</td>
		<td colspan="2"><%= select 'function', 'id',Function.find(:all).map {|u| [u.cname, u.id] }%></td>
		<%= observe_field(:function_id,:frequency => 0.5,:update => "position",
						:loading => "Element.show('functionind')",:complete => "Element.hide('functionind')",
						:url => {:controller=>"index",:action => "listposition"}) %>
		<td><div id='functionind' style="display:none"><%=image_tag("/images/progress.gif")%></div></td>
	</tr>
	<tr height="10">
		<td colspan="5"></td>
	</tr>
	<tr valign="top" height="30">
		<td></td>
		<td>
		<li><strong>请选择需要分析的职位：</strong></li>
		</td>
		<td width="175" id="position"><%= select 'position', 'id',Position.find(:all,:conditions=>["function_id=1"]).map {|u| [u.cname, u.id] },{},{:size =>"7",:style=>"width:175px;"}%>
		</td>
		<td valign="middle"><IMG
			onclick=addToWithSubmit(position_id,positionSelected) height=17
			alt="" src="/images/GRAY_BTN_ADD.gif" width=50><BR>
		<BR>
		<IMG onclick=moveWithSubmit(positionSelected) height=17 alt=""
			src="/images/GRAY_BTN_SUBTRACT.gif" width=50></TD>
		<td align=left><SELECT size=7 name=positionSelected
			style="width:175px;"></SELECT><INPUT type=hidden name=positionSelected1
			id=positionSelected1><INPUT type=hidden name=positionSelected2
			id=positionSelected2><INPUT type=hidden name=positionSelected3
			id=positionSelected3><INPUT type=hidden name=positionSelected4
			id=positionSelected4><INPUT type=hidden name=positionSelected5
			id=positionSelected5><INPUT type=hidden name=positionSelected6
			id=positionSelected6></td>
	</tr>
	<tr height="10">
		<td colspan="5"></td>
	</tr>
	</tr>
	<tr valign="middle" height="30">
		<td></td>
		<td>
		<li><strong>请选择需要分析的区域：</strong></li>
		</td>
		<td colspan="2"><%= select 'region', 'id',Region.find(:all).map {|u| [u.cname, u.id] }%></td>
		<%= observe_field(:region_id,:frequency => 0.5,:update => "city",
						:loading => "Element.show('regionind')",:complete => "Element.hide('regionind')",
						:url => {:controller=>"index",:action => "listcity"}) %>
		<td><div id='regionind' style="display:none"><%=image_tag("/images/progress.gif")%></div></td>
	</tr>
	<tr height="10">
		<td colspan="5"></td>
	</tr>
	<tr valign="top" height="30">
		<td></td>
		<td>
		<li><strong>请选择需要分析的城市：</strong></li>
		</td>
		<td width="175" id="city"><%= select 'city', 'id',City.find(:all,:conditions=>["region_id=1"]).map {|u| [u.cname, u.id] },{},{:size =>"7",:style=>"width:175px;"}%>
		</td>
		<td valign="middle"><IMG
			onclick=addToWithSubmit(city_id,citySelected) height=17
			alt="" src="/images/GRAY_BTN_ADD.gif" width=50><BR>
		<BR>
		<IMG onclick=moveWithSubmit(citySelected) height=17 alt=""
			src="/images/GRAY_BTN_SUBTRACT.gif" width=50></TD>
		<td align=left><SELECT size=7 name=citySelected
			style="width:175px;"></SELECT><INPUT type=hidden name=citySelected1
			id=citySelected1><INPUT type=hidden name=citySelected2
			id=citySelected2><INPUT type=hidden name=citySelected3
			id=citySelected3><INPUT type=hidden name=citySelected4
			id=citySelected4><INPUT type=hidden name=citySelected5
			id=citySelected5><INPUT type=hidden name=citySelected6
			id=citySelected6></td>
	</tr>
	<tr height="10">
		<td colspan="5"></td>
	</tr>
	<tr valign="middle" height="30">
		<td colspan="5" align="right"><%= submit_tag "下一步",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%> &nbsp;(&nbsp;<%= link_to "上一步", :controller=>"report", :action=>"startreport"%>&nbsp;)</td>
	</tr>
</table>
<%= end_form_tag %>
